@import '~antd/lib/style/themes/default.less';

.pageHeader {
  background: @component-background;
  padding: 0.2rem 0.7rem 0;
  border-bottom: @border-width-base @border-style-base @border-color-split;

  button + button,
  button + a,
  a + button,
  a + a {
    margin-left: 0.16rem;
  }
  .wide {
    max-width: 1200px;
    margin: auto;
  }
  .detail {
    display: flex;
  }

  .row {
    display: flex;
    width: 100%;
  }

  .logo {
    flex: 0 1 auto;
    margin-right: 0.32rem;
    padding-top: 1px;
    > img {
      width: 0.56rem;
      height: 0.56rem;
      border-radius: @border-radius-base;
      display: block;
    }
  }

  .title {
    font-size: 0.4rem;
    font-weight: 500;
    color: @heading-color;
    padding-right: 0.2rem;
  }

  .action {
    //margin-left: 1.12rem;
    //min-width: 5.32rem;

    :global {
      .ant-btn-group:not(:last-child),
      .ant-btn:not(:last-child) {
        margin-right: 0.16rem;
      }

      .ant-btn-group > .ant-btn {
        margin-right: 0;
      }
    }
  }

  //.title,
  .action,
  .content,
  .extraContent {
    flex: auto;
  }

  .main {
    flex: 0 1 auto;
    width: 100%;
  }

  .title,
  .action,
  .breadcrumb {
    margin-bottom: 0.2rem;
    height: 0.86rem;
    line-height: 0.86rem;
    font-size: 0.4rem;
  }

  .logo,
  .content,
  .extraContent {
    margin-bottom: 0.2rem;
    font-size: 0.34rem;
  }

  .action,
  .extraContent {
    text-align: right;
  }

  .extraContent {
    //margin-left: 1.76rem;
    //min-width: 4.84rem;
  }
}

@media screen and (max-width: @screen-xl) {
  .pageHeader {
    .extraContent {
      margin-left: 0.88rem;
    }
  }
}

@media screen and (max-width: @screen-lg) {
  .pageHeader {
    .extraContent {
      margin-left: 0.4rem;
    }
  }
}

@media screen and (max-width: @screen-md) {
  .pageHeader {
    .row {
      display: block;
    }

    .action,
    .extraContent {
      margin-left: 0;
      text-align: left;
    }
  }
}

@media screen and (max-width: @screen-sm) {
  .pageHeader {
    .detail {
      display: block;
    }
  }
}

@media screen and (max-width: @screen-xs) {
  .pageHeader {
    .action {
      :global {
        .ant-btn-group,
        .ant-btn {
          display: block;
          margin-bottom: 0.16rem;
        }
        .ant-btn-group > .ant-btn {
          display: inline-block;
          margin-bottom: 0;
        }
      }
    }
  }
}
